//slice
//splice
//concat
//Array.from
//...扩展运算符

function test() {
  console.log(Array.prototype.slice.call(arguments));
  //   console.log(Array.prototype.splice.call(arguments, 0));
  console.log(Array.prototype.concat.apply([], arguments));
  console.log(Array.from(arguments));
  console.log([...arguments]);
}

test(1, 2, 3, 4, 5);
